-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Allow lists on FeatureTestTrait#post $params #9204
Conversation
You can reproduce the bug by deleting |
Thank you for your first contribution! Can you also add an entry to the changelog, under the section "Bugs Fixed"? |
Done |
d58a30a
to
e40ef7e
Compare
**FeatureTestTrait:** Allows `#call` and `#post` to process JSON lists. It failed because `RequestTrait#fetchGlobal` expected the second parameter ($index) to be an associative array. | ||
|
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
Sorry, now I see that this is about something different than I originally thought - even though you described it correctly from the beginning. I guess it was too early for me this morning... This is a bug in I'm afraid the proposed changes are not the right ones. But after my slip-up, I will wait for the opinions of others. |
No problem. I just patched it blindly, but surely someone more familiar with the codebase can come up with a better approach. |
Description**
Fixes a bug that doesn't allow to send lists in JSON format in
FeatureTestTrait#post
or#call('POST',...
. This because it expected params to always be an associative array.Checklist: